# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=s6-networking-man-pages
pkgver=2.7.0.4.1
pkgrel=0
pkgdesc="Unofficial mdoc versions of the s6-networking documentation"
url="https://github.com/flexibeast/s6-networking-man-pages"
arch="noarch"
license="ISC"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~flexibeast/s6-networking-man-pages/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests
install_if="${pkgname%-*-*}>=${pkgver%.*} docs"

package() {
	make DESTDIR="$pkgdir" install

	find "$pkgdir" -type f ! -name "*.gz" \
		-exec gzip -9 {} \;
}

sha512sums="
c332f6298eff0d3de9a9805e56962f45e1f42e02c414ce9a19203a1c684c8744734cc03b9c68cf314ca4449f333aeaadde684f5eb9246a02e5db1c5d46cac630  s6-networking-man-pages-2.7.0.4.1.tar.gz
"
